<?php
/**
 * Base DAO class file.
 *
 * @author krisjiang(krisjiang@anjuke.com)
 * @version 2010-06-04
 */
apf_require_class("APF_DB_Factory");

class Solr_Dao_Base{

    //solr_report_master
    protected function get_srm_pdo() {
        return APF_DB_Factory::get_instance()->get_pdo("solr_report_master");
    }

    //solr_report_slave
    protected function get_srs_pdo() {
        return APF_DB_Factory::get_instance()->get_pdo("solr_report_slave");
    }

    //idx_master
    protected function get_idxm_pdo(){
        return APF_DB_Factory::get_instance()->get_pdo("idx_master");
    }

    //idx_slave
    protected function get_idxs_pdo(){
        return APF_DB_Factory::get_instance()->get_pdo("idx_slave");
    }

}